package labox.innovation.gameserver.network.clientpackets;

import java.util.ArrayList;
import java.util.List;

import labox.innovation.gameserver.model.FuzeTrusteeInstance;
import labox.innovation.gameserver.model.actor.instance.FuzePcInstance;

public final class AutoPkSet extends L2GameClientPacket {
	
	private static final String _S_AUTOATTACKSET = "_S_autoAttackset";
	
	private List<Object> ls =new ArrayList<Object>();
	
	private FuzeTrusteeInstance trustee;

	@Override
	public String getType() {
		return _S_AUTOATTACKSET;
	}

	@Override
	protected void readImpl() {
		FuzePcInstance active = getClient().getActiveChar();
		trustee = active.getAI().getTrustee();
		trustee.setSolution(readByte());		//药水
		trustee.setGemstone(readByte());		//宝石
		trustee.setScroll(readByte());			//卷轴
		trustee.setFaEquipment(readByte());		//法器装备
		trustee.setBaoEquipment(readByte());	//宝器装备
		trustee.setLingEquipment(readByte());	//灵器装备
		trustee.setZhiEquipment(readByte());	//至宝装备
		trustee.setShenEquipment(readByte());	//神器装备

		trustee.setIsUseSkill(readByte());		//自动战斗时是否使用技能
		trustee.setSkillId_1(readShort());		//技能1
		trustee.setSkillId_2(readShort());		//技能2
		trustee.setSkillId_3(readShort());		//技能3
		trustee.setSkillId_4(readShort());		//技能4
		trustee.setIsUseState(readByte());		//自动战斗时是否使用buffer药
		trustee.setStateId_1(readShort());		//状态1
		trustee.setStateId_2(readShort());		//状态1
		trustee.setStateId_3(readShort());		//状态1
		trustee.setStateId_4(readShort());		//状态1

		trustee.setHpoff(readByte());			//自动补给生命值下限
		trustee.setHpCP(readByte());			//自动补给生命值百分比
		trustee.setSpoff(readByte());			//自动补给魔法
		trustee.setSpCP(readByte());			//自动补给魔法值百分比
		trustee.setAutoBuyRed(readByte());		//自动购买红药
		trustee.setRedItemId(readShort());		//红药物品ID
		trustee.setAutoBuyBlue(readByte());		//自动购买蓝药
		trustee.setBlueItemId(readShort());		//蓝药物品ID

		trustee.setHpBeastOff(readByte());		//神兽自动补给生命 开关
		trustee.setHpBeast(readByte());			//神兽自动补给生命值百分比
		trustee.setHealSkillId(readShort());	//自动治疗技能给神兽加生命
		trustee.setDealSpawn(readByte());		//自动召唤 0关闭  1开启
		trustee.setSpawnSkillId(readShort());	//自动召唤技能

		trustee.setHpPetOff(readByte());		//宠物自动补给生命开关
		trustee.setHpPet(readByte());			//宠物自动补给生命值百分比
		trustee.setPetHealSkillId(readShort());	//宠物自动治疗技能或红药加生命
		trustee.setPetSpawn(readByte());		//宠物自动召唤 0关闭  1开启
		trustee.setPetSpawnSkillId(readShort());//宠物自动召唤技能
		
		trustee.setPointPK(readByte());			//定点打怪 0关闭 1开启
		trustee.setAutofix(readByte());			//自动修理 0关闭 1开启
		trustee.setPkActorR(readByte());		//打怪半径 
		trustee.setAutoTeam(readByte());		//自动组队 0关闭 1开启
		trustee.setAutoReply(readByte());		//自动回复 0关闭 1开启
		trustee.setAutoMsg(readString());		//自动回复消息
		
		trustee.setOffUserProtect(readByte());		//是否开启角色保护
		trustee.setOffBeastProtect(readByte());		//是否开启召唤兽保护 
		trustee.setOffPetProtect(readByte());		//是否开启宠物保护 
		trustee.setOffPickFilter(readByte());		//是否开启拾起过滤
		trustee.setOffAutoFix(readByte());			//是否开启自动修理
	}

	@Override
	protected void runImpl() {
		
	}

}
